package com.li.mapper;

import com.github.pagehelper.Page;
import com.li.pojo.po.Opportunities;
import com.li.pojo.po.OpportunitiesRecord;
import com.li.pojo.vo.AssignmentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface BusinessMapper {
    


    void listSave(Opportunities opportunities);
    @Select("select * from sys_opportunities where id=#{id}")
    Opportunities find(Integer id);

    void update(Opportunities opportunities);

    void recordAdd(OpportunitiesRecord record);

    List<OpportunitiesRecord> recordList(Long id);


    Integer back(Integer id, String reason);


    void reasonGain(Integer id, String reason);

    Page<Opportunities> listPage(Integer pageNum, Integer pageSize, Integer id, String phone, String name, String owner, String status, String beginCreateTime, String endCreateTime);

    Page<Opportunities> poolPage(Integer pageNum, Integer pageSize, Integer id, String phone, String name, String subject, String beginCreateTime, String endCreateTime);

}
